package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Department implements Serializable,Cloneable{
    /** 部门id */

    @TableId(type = IdType.AUTO)
    private Integer id ;
    /** 部门名称 */
    private String departmentName ;
    /** 负责人 */
    private Long charge ;
    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateDate ;
    /** 0否 1是 */
    @TableLogic
    private Integer deleted ;

}
